package com.ruoyi.user;

import com.ruoyi.system.domain.SysNotice;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class UserService {

    @RabbitListener(queues = "user.notice.queue")
    public void Userservice(SysNotice notice){
// 此处省略发邮件的逻辑
        System.out.println("用户端-------------->" + notice);
    }

}